<?php
namespace App\Models\Base;

class Area extends BaseModel
{
    protected $table = 'beesoft_areas';
    protected $fillable = [
        'name',
        'email',
    ];

    public static function getTypes(): array {
        return [
            1 => '省',
            2 => '市',
        ];
    }
    public static function getAreas() {
        return self::pluck('title', 'id')->toArray();
    }
}
